package com.nav.brainfuckeditor.editors;

import org.eclipse.jface.text.rules.IRule;
import org.eclipse.jface.text.rules.RuleBasedScanner;
import org.eclipse.jface.text.rules.WhitespaceRule;

public class BFScanner extends RuleBasedScanner {
	public BFScanner(ColorManager manager) {
		IRule[] rules = new IRule[1];
		// Add generic whitespace rule.
		rules[0] = new WhitespaceRule(new BFWhitespaceDetector());
		setRules(rules);
	}
}
